Lee founded the anticommunist Socialist People's Action Party 1954 and entered the Singapore legislative assembly 1955. He was elected the country's first prime minister 1959, and took Singapore out of the Malaysian federation 1965. He remained in power until his resignation 1990, and was succeeded by Goh Chok Tong. Until 1992 he held on to the party leadership.